import request from '@/utils/request'

// 查询商品签到列表
export function listSignin(query) {
  return request({
    url: '/system/signin/list',
    method: 'get',
    params: query
  })
}

// 查询商品签到详细
export function getSignin(signinId) {
  return request({
    url: '/system/signin/' + signinId,
    method: 'get'
  })
}

// 新增商品签到
export function addSignin(data) {
  return request({
    url: '/system/signin',
    method: 'post',
    data: data
  })
}

// 修改商品签到
export function updateSignin(data) {
  return request({
    url: '/system/signin',
    method: 'put',
    data: data
  })
}

// 删除商品签到
export function delSignin(signinId) {
  return request({
    url: '/system/signin/' + signinId,
    method: 'delete'
  })
}

// 导出商品签到
export function exportSignin(query) {
  return request({
    url: '/system/signin/export',
    method: 'get',
    params: query
  })
}